<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>正则判断电话号码对错</title>
</head>

<body>
  <script>
    function arr(num) {
      if (/^1[3-9][0-9]{9}/.test(num)) {
        console.log('对');
      } else {
        console.log('错');
      }
      return num
    }
    console.log(arr(15097681671));
  </script>
</body>

</html>